package com.fduss.sota.service;

import com.fduss.sota.domain.Company;
import com.fduss.sota.domain.RiskCheckResultSheet;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collection;
import java.util.List;

/**
 * @Author duocai
 * @Date 2017/6/18
 * @Time 21:03
 */
@Service
@Transactional
public interface CompanyService {

    boolean add(Company company);

    boolean add(List<Company> companies);

    void delete(Long id);

    void delete(Company company);

    void deleteAll();

    boolean update(Company company);

    Company get(Long id);

    List<Company> getAll();
}
